package com.yeyks.commonReference.service.vip;

import com.github.binarywang.wxpay.bean.notify.WxPayOrderNotifyResult;
import com.yeyks.common.em.pay.PayTypeEnum;
import com.yeyks.vip.dal.domain.MemberCardEnableRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yeyks.vip.param.MemberCardEnableRecordCreateOrderPayRecordParam;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;


/**
 * <p>
 * 会员卡购买订单支付记录表 服务类
 * </p>
 *
 * @author yun
 * @since 2019-08-07
 */
public interface MemberCardEnableRecordService extends IService<MemberCardEnableRecord> {

    /**
     * v3.4.a
     * 根据订单生成支付
     */
    Map<String, Object> createOrderPayRecord(MemberCardEnableRecordCreateOrderPayRecordParam param);

    /**
     * v3.4.a
     * 会员卡enable订单支付回调
     */
    void payCallback(String orderNo, PayTypeEnum payTypeEnum, WxPayOrderNotifyResult resultCode, Boolean succeeded);

    /**
     * v3.4.a
     * 会员卡enable订单支付回调
     */
    void payCallbackT(String orderNo, PayTypeEnum payTypeEnum, WxPayOrderNotifyResult resultCode, Boolean succeeded);
}
